import 'package:tin_flutter/generated/json/base/json_field.dart';
import 'package:tin_flutter/generated/json/brand_product_entity.g.dart';
import 'dart:convert';
export 'package:tin_flutter/generated/json/brand_product_entity.g.dart';

@JsonSerializable()
class BrandProductEntity {
	int pageNum = 0;
	int pageSize = 0;
	int totalPage = 0;
	int total = 0;
	List<BrandProductList> list = [];

	BrandProductEntity();

	factory BrandProductEntity.fromJson(Map<String, dynamic> json) => $BrandProductEntityFromJson(json);

	Map<String, dynamic> toJson() => $BrandProductEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class BrandProductList {
	int id = 0;
	int brandId = 0;
	int productCategoryId = 0;
	int feightTemplateId = 0;
	int productAttributeCategoryId = 0;
	String name = '';
	String pic = '';
	String productSn = '';
	int deleteStatus = 0;
	int publishStatus = 0;
	int newStatus = 0;
	int recommandStatus = 0;
	int verifyStatus = 0;
	int sort = 0;
	int sale = 0;
	int price = 0;
	int giftGrowth = 0;
	int giftPoint = 0;
	int usePointLimit = 0;
	String subTitle = '';
	int originalPrice = 0;
	int stock = 0;
	int lowStock = 0;
	String unit = '';
	int weight = 0;
	int previewStatus = 0;
	String serviceIds = '';
	String keywords = '';
	String note = '';
	String albumPics = '';
	String detailTitle = '';
	int promotionPerLimit = 0;
	int promotionType = 0;
	String brandName = '';
	String productCategoryName = '';

	BrandProductList();

	factory BrandProductList.fromJson(Map<String, dynamic> json) => $BrandProductListFromJson(json);

	Map<String, dynamic> toJson() => $BrandProductListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}